<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>求职者注册</title>
    <!-- 引入 layui.css -->
    <link rel="stylesheet" href="//unpkg.com/layui@2.6.8/dist/css/layui.css">
</head>
<body>
<h1 style="text-align: center;padding: 70px 0 20px 0">Register</h1>
<form class="layui-form" th:action="@{check_register}" method="post">
    <div id="mainDiv">
        <div class="layui-form-item" style="margin-left: 580px">
            <label class="layui-form-label">账&emsp;&emsp;号</label>
            <div class="layui-input-block">
                <input type="text" required lay-verify="required" placeholder="请输入账号" autocomplete="off"
                       name="username" class="layui-input" style="width: 25%">
            </div>
        </div>
        <div class="layui-form-item" style="margin-left: 580px">
            <label class="layui-form-label">密&emsp;&emsp;码</label>
            <div class="layui-input-block">
                <input type="password" required lay-verify="required" placeholder="请输入密码" autocomplete="off"
                       name="password" class="layui-input" style="width: 25%">
            </div>
        </div>
        <div class="layui-form-item" style="margin-left: 580px">
            <label class="layui-form-label">确认密码</label>
            <div class="layui-input-block">
                <input type="password" required lay-verify="required" placeholder="请确认密码" autocomplete="off"
                       name="rePassword" class="layui-input" style="width: 25%">
            </div>
        </div>
        <div class="layui-form-item" style="margin-left: 580px">
            <div class="layui-input-block">
                <p style="color: red;padding-left: 38px" th:text="${msg}" th:if="${not #strings.isEmpty(msg)}"></p>
                <button class="layui-btn" lay-submit>注册</button>
                <a th:href="@{login}" class="layui-btn layui-btn-normal">登录</a>
            </div>
        </div>
        <a th:href="@{register}" style="margin-left: 820px"
           class="layui-btn layui-btn-primary layui-border-blue">企业注册</a>
    </div>
</form>
</body>
</html>